﻿
@model RTW.OA.Models.official_document_borrow
@{

    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}

@section styles{

}
<div id="dMain">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox">
            <div class="ibox-title">
                <h4>文件借阅申请 </h4>
            </div>
            <div class="ibox-content">
                @using (Html.BeginForm("Borrow", "Borrow", FormMethod.Post, new { area = "Document", id = "form", name = "form" }))
                {
                    @Html.AntiForgeryToken()
                    <div class="from-content">
                        <dl>
                            <dt>文件名称</dt>
                            <dd>
                                @Html.EditorFor(m => m.official_document.SUBJECT, new { htmlAttributes = new { @class = "input normal form-control", @readonly="readonly" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>申请人</dt>
                            <dd>
                                @Html.TextBox("PROPOSER_USER_NAME",(Session["UserInfo"] as user).TRUE_NAME, new { @class = "input normal form-control", @readonly = "readonly" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>天数</dt>
                            <dd>
                                @Html.TextBox("DAYS", 1, new { @class = "input normal form-control",@type="number" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>借阅理由</dt>
                            <dd>
                                @Html.TextArea("REASON", new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        @Html.HiddenFor(a=>a.DOC_ID)
                    </div>
                    <div class="from-footer">
                        <div class="btn-wrap" style="position: fixed;">
                            <a class="btn btn-sm btn-primary radius" onclick="savefrom()">
                                <i class="iconfont icon-save"></i>
                                提 交
                            </a>
                            <a class="btn btn-sm btn-warning radius" onclick="parent.layer.close(parent.layer.index)">
                                <i class="iconfont icon-fanhui"></i>
                                取消关闭
                            </a>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
@section scripts{
    <script src="@Url.Content("~/Content/JS/common/WdatePicker/WdatePicker.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/jquery/Validform_v5.3.2_min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/artdialog/dialog-plus-min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/webuploader/webuploader.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.config.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.all.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/lang/zh-cn/zh-cn.js")"></script>

    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/uploader.js")"></script>
    @*<script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>*@

    <script src="@Url.Content("~/Content/JS/common/from.js")"></script>
    <script>
        $(function () {
            //初始化表单验证
            $("#form").initValidform();
        });

        function savefrom() {
            parent.layer.close(parent.layer.index);
            $("#form").submit();
        }
    </script>

}